package com.waypolice.manager.service;

import com.waypolice.pojo.CmsJudVolume;
import com.waypolice.pojo.CmsJudVolumeExample;
import com.waypolice.pojo.CmsSinItem;
import com.waypolice.pojo.CmsSinItemExample;

import java.util.List;

/**
 * @Description 单件service层
 * @Author wangrang
 * @Date Created in 15:50 2019/3/25
 * @Modified By:
 */
public interface CmsSinItemService {


    /**
     * 卷信息查询,根据创建时间排序
     * @return
     */
    List<CmsSinItem> selectAllByQueryParms(CmsSinItemExample cmsSinItemExample);

    /**
     * 根据件主键查找已上传的原图地址
     * @param itemId
     * @return
     */
    String selectByPojo(Long itemId);

    /**
     * 获取单件档号
     * @param cmsSinItem
     * @return error:构成档号的字段值为null
     */
    String getSingItemFileNumber(CmsSinItem cmsSinItem) throws Exception;

    /**
     * @author:zyp
     * @description 根据id获取单件内容
     * @date: 2019/3/27 9:59
     * @return 
     */
    List<CmsSinItem> selectSimItemsByIds(List<String> ids);

    /**
     * @author:zyp
     * @description 根据id修改单件数据
     * @date: 2019/3/27 10:10
     * @return 
     */
    void updateSinItemByPrimaryKeySelective(CmsSinItem cmsSinItem);

    /**
     * @author:zyp
     * @description 根据id获取单件数据
     * @date: 2019/3/27 11:09
     * @return 
     */
    CmsSinItem selectSinItemById(Long fileId);
}
